/**
 * 匠言知识付费v2.0.0
 * Author: 山西匠言网络科技有限公司
 * 这不是一个免费软件，它受限于许可条款，你可以访问https://www.zsfzxkc.cn/获取更多详细信息。
 * This is not a free software, it under the license terms, you can visit https://www.zsffzxkc.cn/ get more details.
 */
import request from '@/request/request.js'

// 商城首页
export const getShoppingInfo = () => {
	return request({
		url: 'index/mall/index'
	})
}

// 商城单个主分类列表
export const postDataList = (data) => {
	return request({
		url: 'index/mall/datalist',
		method: 'post',
		data
	})
}
// 导航分类换一批
export const postDhHyp = (data) => {
	return request({
		url: 'index/mall/dhhyp',
		method: 'post',
		data
	})
}
// 子分类下商品列表接口
export const postSonflGoodslist = (data) => {
	return request({
		url: 'index/classify/sonfl_goodslist',
		method: 'post',
		data
	})
}

// 子分类下商品列表接口搜索
export const postSonflGoodslistse = (data) => {
	return request({
		url: 'index/classify/sonfl_goodslistse',
		method: 'post',
		data
	})
}



 // 商品详情页
export const postDataDetail = (data) => {
	return request({
		url: 'index/mall/datadetail',
		method: 'post',
		data
	})
}


// 商城首页推荐接口
export const postIndexGoods = (data) => {
	return request({
		url: 'index/mall/indexgoods',
		method: 'post',
		data
	})
}